﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class IndexService
    {

        //------------重构index.aspx里的登录功能------------
        public void EstimateRegister(string userName, out ps_manager myuser, out int userid)
        {
            //判断登录信息
            myuser = new ps_manager();
            string sqlGetUserID = "select id from [ps_manager] where user_name='" + userName + "'";
            //查询登陆用户的ID
            userid = Convert.ToInt16(DbHelperSQL.GetSingle(sqlGetUserID));
            myuser.GetModel(userid);
        }
    }
}
